//
//  HeaderTableViewCell.m
//  Funny
//
//  Created by dllo on 15/10/29.
//  Copyright © 2015年 King. All rights reserved.
//

#import "HeaderTableViewCell.h"

@implementation HeaderTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        self.bgImageView = [[UIImageView alloc]init];
        [self.contentView addSubview:_bgImageView];
        
        self.titleLable = [[UILabel alloc]init];
        [self.contentView addSubview:_titleLable];
        
        self.infoLable = [[UILabel alloc]init];
        self.infoLable.font = [UIFont systemFontOfSize:13];
        self.infoLable.textColor = [UIColor grayColor];
        [self.contentView addSubview:_infoLable];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.bgImageView.frame = CGRectMake(0, 0, self.contentView.bounds.size.width, self.contentView.bounds.size.height - 60 * H);
    self.titleLable.frame = CGRectMake(10, self.contentView.bounds.size.height - 60 * H, self.contentView.bounds.size.width - 20, 30 * H);
    self.infoLable.frame = CGRectMake(10, self.contentView.bounds.size.height - 30 * H, self.contentView.bounds.size.width - 20, 25 * H);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
